package edu.zut.vlog.controller;

/**
 * Created by Intellij IDEA
 * Author: yicheng
 * Date: 2022/3/22
 * Time: 21:37
 **/
public class test {
    public static void main(String[] args) {
        String str="123456";
        char[] c = str.toCharArray();
        for (char i:c) {
            System.out.println(i);
        }
        int[] a = new int[c.length];
        for (int i = 0; i < a.length; i++) {
            a[i] = Integer.parseInt(String.valueOf(c[i]));
        }
        for (int t:a) {
            System.out.print(t+"  ");
        }
    }
}
